﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Domain.Model.Comparendos;
using Application.WebServices;
using Application.Model;

namespace InfraccionesWeb.Formularios
{
    public partial class ComparendoPorInfractor : System.Web.UI.Page
    {
        //referencia a los servicios web de Infracciones
        ServicioInfracciones webServices = new ServicioInfracciones();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            String idInfractor = txtIdInfractor.Text;
            List<ComparendoDTO> lista = webServices.getComparendosInfractor(idInfractor);
            gdwComparendos.DataSource = lista;
            gdwComparendos.DataBind();
        }
    }
}